package com.authority.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.authority.dao.AuthUserDataDao;
import com.authority.entry.AuthUserDataDO;
import com.authority.service.AuthUserDataService;

@Service
public class AuthUserDataServiceImpl implements AuthUserDataService {

	@Autowired
	private AuthUserDataDao authUserDataDao;

	@Override
	public void insert(AuthUserDataDO data) {
		authUserDataDao.insert(data);

	}

	@Override
	public void updateBySelective(AuthUserDataDO data) {
		authUserDataDao.updateBySelective(data);
	}

	@Override
	public void update(AuthUserDataDO data) {
		authUserDataDao.update(data);
	}

	@Override
	public Integer countByUserId(Long userid) {
		return authUserDataDao.countByUserId(userid);
	}

}
